package com.hopes.bizz.video.common.service;

import com.hopes.bizz.video.service.mapper.VideoListMapper;
import com.hopes.bizz.video.service.mapper.VideoRegionMapper;
import com.hopes.boss.admin.api.entity.SysDictItem;
import com.hopes.boss.common.service.TableDictService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yumr
 * @ProjectName bizz
 * @time 2024/1/18 22:39
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class VideoDictServiceImpl implements TableDictService {

    private final VideoListMapper videoListMapper;


    private final VideoRegionMapper videoRegionMapper;

    /**
     * 视频字典
     * @return 结果集
     */
    public List<SysDictItem> listVideoAsDict() {
        return videoListMapper.labelValueList();
    }

    /**
     * 视频区域字典
     * @return 结果集
     */
    public List<SysDictItem> listVideoRegionAsDict() {
        return videoRegionMapper.labelValueList();
    }

}
